package cn.ydt.ydt.pojo.shopping.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

@Data
public class SimpleVegetableDTO implements Serializable {
    /**
     * 购买数量
     */
    @ApiModelProperty(value = "购买数量",required = true,example = "5")
    @NotNull(message = "购买数量不能为空")
    private Integer cartCount;

    /**
     * 菜品名
     */
    @ApiModelProperty(value = "菜品名",required = true,example = "青菜")
    @NotNull(message = "菜品名")
    private String vegetableName;

}
